import java.awt.Container;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;
import java.awt.event.MouseEvent;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import javax.accessibility.AccessibleContext;
import javax.swing.ButtonGroup;
import javax.swing.DefaultComboBoxModel;
import javax.swing.DefaultListModel;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import javax.swing.GroupLayout.ParallelGroup;
import javax.swing.GroupLayout.SequentialGroup;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JComboBox;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
import javax.swing.JScrollPane;
import javax.swing.JSlider;
import javax.swing.JSpinner;
import javax.swing.JTabbedPane;
import javax.swing.JTextField;
import javax.swing.LayoutStyle.ComponentPlacement;
import javax.swing.SpinnerNumberModel;

public class GUI extends JFrame
{
  private gg BASELINE;
  private ItemDeleter D = null;
  private ItemSpawner F = null;
  private MCThread KKLI = null;
  private ArrayList LEADING = new ArrayList();
  private ArrayList RELATED = new ArrayList();
  private ArrayList TRAILING = new ArrayList();
  private ArrayList UNRELATED = new ArrayList();
  private ArrayList aB = new ArrayList();
  private final int add = -32767;
  private DefaultListModel addActionListener;
  private DefaultListModel addComponent;
  String[] addContainerGap = null;
  private JComboBox addElement;
  private ButtonGroup addGap;
  private ButtonGroup addGroup;
  private JRadioButton addKeyListener;
  private JButton addMouseListener;
  private JRadioButton addPreferredGap;
  private JCheckBox addTab;
  private JCheckBox append;
  private JButton as;
  private JCheckBox at;
  private JCheckBox au;
  private JCheckBox av;
  private JSpinner aw;
  private JList ax;
  private JTextField c;
  private JButton charAt;
  private JLabel clear;
  private JLabel compile;
  private JLabel createParallelGroup;
  private JLabel createSequentialGroup;
  private JLabel e;
  private JLabel equals;
  private JLabel exit;
  private JLabel find;
  private JLabel g;
  private JLabel get;
  private JPanel getAccessibleContext;
  private JRadioButton getSelectedIndex;
  private JScrollPane getText;
  private JScrollPane getValue;
  private JSlider hasNext;
  private JTabbedPane isSelected;
  private JRadioButton iterator;
  private JRadioButton length;
  private JRadioButton matcher;
  private JRadioButton next;
  private JPanel parseInt;
  private JCheckBox printStackTrace;
  private JButton setAccessibleName;
  private JRadioButton setEnabled;
  private JButton setFont;
  private JButton setHorizontalGroup;
  private JPanel setLayout;
  private JButton setModel;
  private JList setSelected;
  private JTextField setSelectionMode;
  private JComboBox setText;
  private JCheckBox setVerifyInputWhenFocusTarget;
  public JLabel I;
  private JRadioButton setVerticalGroup;

  public GUI(gg paramgg)
  {
    D();
    this.addContainerGap = new String[this.LEADING.size()];
    this.addActionListener = new DefaultListModel();
    this.addComponent = new DefaultListModel();
    Object localObject = null;
    if (this.BASELINE == null)
    {
      if (paramgg == null)
      {
        JOptionPane.showMessageDialog(null, "An error has occured. An update is needed or Minecraft servers are down.", "MCCheat", 2);
        System.exit(0);
      }
      this.BASELINE = paramgg;
    }
    if (this.D == null)
      this.D = new ItemDeleter(this.BASELINE);
    if (this.F == null)
      this.F = new ItemSpawner(this.BASELINE);
    if (this.KKLI == null)
    {
      this.KKLI = new MCThread(this.BASELINE);
      this.KKLI.I();
    }
    Iterator localIterator = this.LEADING.iterator();
    while (localIterator.hasNext())
    {
      Item localItem = (Item)localIterator.next();
      this.addComponent.addElement(localItem.I());
      this.RELATED.add(localItem);
    }
    F();
  }

  private boolean BASELINE()
  {
    return (this.BASELINE.e != null) && (this.BASELINE.g != null) && (this.BASELINE.g.e != null);
  }

  private void D()
  {
    this.LEADING.add(new Item("Stone", 1, Type.I));
    this.LEADING.add(new Item("Grass", 2, Type.I));
    this.LEADING.add(new Item("Dirt", 3, Type.I));
    this.LEADING.add(new Item("Cobblestone", 4, Type.I));
    this.LEADING.add(new Item("Wood", 5, Type.I));
    this.LEADING.add(new Item("Sapling", 6, Type.I));
    this.LEADING.add(new Item("Bedrock (Adminium)", 7, Type.I));
    this.LEADING.add(new Item("Water", 8, Type.I));
    this.LEADING.add(new Item("Still Water", 9, Type.I));
    this.LEADING.add(new Item("Lava", 10, Type.I));
    this.LEADING.add(new Item("Still Lava", 11, Type.I));
    this.LEADING.add(new Item("Sand", 12, Type.I));
    this.LEADING.add(new Item("Gravel", 13, Type.I));
    this.LEADING.add(new Item("Gold Ore", 14, Type.I));
    this.LEADING.add(new Item("Iron Ore", 15, Type.I));
    this.LEADING.add(new Item("Coal Ore", 16, Type.I));
    this.LEADING.add(new Item("Tree", 17, Type.I));
    this.LEADING.add(new Item("Leaves", 18, Type.I));
    this.LEADING.add(new Item("Sponge", 19, Type.I));
    this.LEADING.add(new Item("Glass", 20, Type.I));
    this.LEADING.add(new Item("Cloth", 35, Type.I));
    this.LEADING.add(new Item("Yellow Flower", 37, Type.I));
    this.LEADING.add(new Item("Red Flower", 38, Type.I));
    this.LEADING.add(new Item("Brown Mushroom", 39, Type.I));
    this.LEADING.add(new Item("Red Mushroom", 40, Type.I));
    this.LEADING.add(new Item("Gold Block", 41, Type.I));
    this.LEADING.add(new Item("Iron Block", 42, Type.I));
    this.LEADING.add(new Item("Double Stair", 43, Type.I));
    this.LEADING.add(new Item("Single Stair", 44, Type.I));
    this.LEADING.add(new Item("Brick", 45, Type.I));
    this.LEADING.add(new Item("TNT", 46, Type.I));
    this.LEADING.add(new Item("Bookshelf", 47, Type.I));
    this.LEADING.add(new Item("Mossy Cobblestone", 48, Type.I));
    this.LEADING.add(new Item("Obsidian", 49, Type.I));
    this.LEADING.add(new Item("Torch", 50, Type.I));
    this.LEADING.add(new Item("Fire", 51, Type.I));
    this.LEADING.add(new Item("Mob Spawner", 52, Type.I));
    this.LEADING.add(new Item("Wood Stairs", 53, Type.I));
    this.LEADING.add(new Item("Chest", 54, Type.I));
    this.LEADING.add(new Item("Redstone Dust", 55, Type.I));
    this.LEADING.add(new Item("Diamond Ore", 56, Type.I));
    this.LEADING.add(new Item("Diamond Block", 57, Type.I));
    this.LEADING.add(new Item("Workbench", 58, Type.I));
    this.LEADING.add(new Item("Crop", 59, Type.I));
    this.LEADING.add(new Item("Soil", 60, Type.I));
    this.LEADING.add(new Item("Furnace", 61, Type.I));
    this.LEADING.add(new Item("Lit Furnace", 62, Type.I));
    this.LEADING.add(new Item("Sign Block", 63, Type.I));
    this.LEADING.add(new Item("Wood Door Block", 64, Type.I));
    this.LEADING.add(new Item("Ladder", 65, Type.I));
    this.LEADING.add(new Item("Rails", 66, Type.I));
    this.LEADING.add(new Item("Cobblestone Stairs", 67, Type.I));
    this.LEADING.add(new Item("Sign Block Top", 68, Type.I));
    this.LEADING.add(new Item("Lever", 69, Type.I));
    this.LEADING.add(new Item("Rock Plate", 70, Type.I));
    this.LEADING.add(new Item("Iron Door Block", 71, Type.I));
    this.LEADING.add(new Item("Wood Plate", 72, Type.I));
    this.LEADING.add(new Item("Red Stone Ore (1)", 73, Type.I));
    this.LEADING.add(new Item("Red Stone Ore (2)", 74, Type.I));
    this.LEADING.add(new Item("Red Stone Torch (Off)", 75, Type.I));
    this.LEADING.add(new Item("Red Stone Torch (On)", 76, Type.I));
    this.LEADING.add(new Item("Button", 77, Type.I));
    this.LEADING.add(new Item("Snow", 78, Type.I));
    this.LEADING.add(new Item("Ice", 79, Type.I));
    this.LEADING.add(new Item("Snow Block", 80, Type.I));
    this.LEADING.add(new Item("Cactus", 81, Type.I));
    this.LEADING.add(new Item("Clay Block", 82, Type.I));
    this.LEADING.add(new Item("Reed Block", 83, Type.I));
    this.LEADING.add(new Item("Juke Box", 84, Type.I));
    this.LEADING.add(new Item("Wooden Fence", 85, Type.I));
    this.LEADING.add(new Item("Pumpkin Helmet", 86, Type.Z));
    this.LEADING.add(new Item("Hell Stone", 87, Type.I));
    this.LEADING.add(new Item("Hell Dirt", 88, Type.I));
    this.LEADING.add(new Item("Hell Light", 89, Type.I));
    this.LEADING.add(new Item("Portal", 90, Type.I));
    this.LEADING.add(new Item("Pumpkin", 91, Type.I));
    this.LEADING.add(new Item("Iron Shovel", 256, Type.Z));
    this.LEADING.add(new Item("Iron Pickaxe", 257, Type.Z));
    this.LEADING.add(new Item("Iron Axe", 258, Type.Z));
    this.LEADING.add(new Item("Flint And Steel", 259, Type.Z));
    this.LEADING.add(new Item("Apple", 260, Type.I));
    this.LEADING.add(new Item("Bow", 261, Type.I));
    this.LEADING.add(new Item("Arrow", 262, Type.I));
    this.LEADING.add(new Item("Coal", 263, Type.I));
    this.LEADING.add(new Item("Diamond", 264, Type.I));
    this.LEADING.add(new Item("Iron Bar", 265, Type.I));
    this.LEADING.add(new Item("Gold Bar", 266, Type.I));
    this.LEADING.add(new Item("Iron Sword", 267, Type.Z));
    this.LEADING.add(new Item("Wood Sword", 268, Type.Z));
    this.LEADING.add(new Item("Wood Shovel", 269, Type.Z));
    this.LEADING.add(new Item("Wood Pickaxe", 270, Type.Z));
    this.LEADING.add(new Item("Wood Axe", 271, Type.Z));
    this.LEADING.add(new Item("Stone Sword", 272, Type.Z));
    this.LEADING.add(new Item("Stone Shovel", 273, Type.Z));
    this.LEADING.add(new Item("Stone Pickaxe", 274, Type.Z));
    this.LEADING.add(new Item("Stone Axe", 275, Type.Z));
    this.LEADING.add(new Item("Diamond Sword", 276, Type.Z));
    this.LEADING.add(new Item("Diamond Shovel", 277, Type.Z));
    this.LEADING.add(new Item("Diamond Pickaxe", 278, Type.Z));
    this.LEADING.add(new Item("Diamond Axe", 279, Type.Z));
    this.LEADING.add(new Item("Stick", 280, Type.I));
    this.LEADING.add(new Item("Bowl", 281, Type.I));
    this.LEADING.add(new Item("Bowl With Soup", 282, Type.I));
    this.LEADING.add(new Item("Gold Sword", 283, Type.Z));
    this.LEADING.add(new Item("Gold Shovel", 284, Type.Z));
    this.LEADING.add(new Item("Gold Pickaxe", 285, Type.Z));
    this.LEADING.add(new Item("Gold Axe", 286, Type.Z));
    this.LEADING.add(new Item("String", 287, Type.I));
    this.LEADING.add(new Item("Feather", 288, Type.I));
    this.LEADING.add(new Item("Gunpowder", 289, Type.I));
    this.LEADING.add(new Item("Wood Hoe", 290, Type.Z));
    this.LEADING.add(new Item("Stone Hoe", 291, Type.Z));
    this.LEADING.add(new Item("Iron Hoe", 292, Type.Z));
    this.LEADING.add(new Item("Diamond Hoe", 293, Type.Z));
    this.LEADING.add(new Item("Gold Hoe", 294, Type.Z));
    this.LEADING.add(new Item("Seeds", 295, Type.I));
    this.LEADING.add(new Item("Wheat", 296, Type.I));
    this.LEADING.add(new Item("Bread", 297, Type.I));
    this.LEADING.add(new Item("Leather Helmet", 298, Type.Z));
    this.LEADING.add(new Item("Leather Chestplate", 299, Type.Z));
    this.LEADING.add(new Item("Leather Pants", 300, Type.Z));
    this.LEADING.add(new Item("Leather Boots", 301, Type.Z));
    this.LEADING.add(new Item("Chainmail Helmet", 302, Type.Z));
    this.LEADING.add(new Item("Chainmail Chestplate", 303, Type.Z));
    this.LEADING.add(new Item("Chainmail Pants", 304, Type.Z));
    this.LEADING.add(new Item("Chainmail Boots", 305, Type.Z));
    this.LEADING.add(new Item("Iron Helmet", 306, Type.Z));
    this.LEADING.add(new Item("Iron Chestplate", 307, Type.Z));
    this.LEADING.add(new Item("Iron Pants", 308, Type.Z));
    this.LEADING.add(new Item("Iron Boots", 309, Type.Z));
    this.LEADING.add(new Item("Diamond Helmet", 310, Type.Z));
    this.LEADING.add(new Item("Diamond Chestplate", 311, Type.Z));
    this.LEADING.add(new Item("Diamond Pants", 312, Type.Z));
    this.LEADING.add(new Item("Diamond Boots", 313, Type.Z));
    this.LEADING.add(new Item("Gold Helmet", 314, Type.Z));
    this.LEADING.add(new Item("Gold Chestplate", 315, Type.Z));
    this.LEADING.add(new Item("Gold Pants", 316, Type.Z));
    this.LEADING.add(new Item("Gold Boots", 317, Type.Z));
    this.LEADING.add(new Item("Flint", 318, Type.I));
    this.LEADING.add(new Item("Meat", 319, Type.I));
    this.LEADING.add(new Item("Cooked Meat", 320, Type.I));
    this.LEADING.add(new Item("Painting", 321, Type.I));
    this.LEADING.add(new Item("Golden Apple", 322, Type.I));
    this.LEADING.add(new Item("Sign", 323, Type.I));
    this.LEADING.add(new Item("Wood Door", 324, Type.I));
    this.LEADING.add(new Item("Bucket", 325, Type.I));
    this.LEADING.add(new Item("Water Bucket", 326, Type.I));
    this.LEADING.add(new Item("Lava Bucket", 327, Type.I));
    this.LEADING.add(new Item("Minecart", 328, Type.I));
    this.LEADING.add(new Item("Saddle", 329, Type.I));
    this.LEADING.add(new Item("Iron Door", 330, Type.I));
    this.LEADING.add(new Item("Red Stone Dust", 331, Type.I));
    this.LEADING.add(new Item("Snowball", 332, Type.I));
    this.LEADING.add(new Item("Boat", 333, Type.I));
    this.LEADING.add(new Item("Leather", 334, Type.I));
    this.LEADING.add(new Item("Milk Bucket", 335, Type.I));
    this.LEADING.add(new Item("Brick", 336, Type.I));
    this.LEADING.add(new Item("Clay", 337, Type.I));
    this.LEADING.add(new Item("Reed", 338, Type.I));
    this.LEADING.add(new Item("Paper", 339, Type.I));
    this.LEADING.add(new Item("Book", 340, Type.I));
    this.LEADING.add(new Item("Slime Orb", 341, Type.I));
    this.LEADING.add(new Item("Storage Minecart", 342, Type.I));
    this.LEADING.add(new Item("Powered Minecart", 343, Type.I));
    this.LEADING.add(new Item("Egg", 344, Type.I));
    this.LEADING.add(new Item("Compass", 345, Type.I));
    this.LEADING.add(new Item("Fishing Rod", 346, Type.I));
    this.LEADING.add(new Item("Watch", 347, Type.I));
    this.LEADING.add(new Item("Gold Dust", 348, Type.I));
    this.LEADING.add(new Item("Fish", 349, Type.I));
    this.LEADING.add(new Item("Cooked Fish", 350, Type.I));
    this.LEADING.add(new Item("Gold Record", 2256, Type.I));
    this.LEADING.add(new Item("Green Record", 2257, Type.I));
    this.TRAILING.add(new ItemSet("Wood", new int[] { 269, 270, 271, 290 }));
    this.TRAILING.add(new ItemSet("Gold", new int[] { 284, 285, 286, 294 }));
    this.TRAILING.add(new ItemSet("Stone", new int[] { 273, 274, 275, 291 }));
    this.TRAILING.add(new ItemSet("Iron", new int[] { 256, 257, 258, 292 }));
    this.TRAILING.add(new ItemSet("Diamond", new int[] { 277, 278, 279, 293 }));
    this.UNRELATED.add(new ItemSet("Leather", new int[] { 298, 299, 300, 301 }));
    this.UNRELATED.add(new ItemSet("Chainmail", new int[] { 302, 303, 304, 305 }));
    this.UNRELATED.add(new ItemSet("Iron", new int[] { 306, 307, 308, 309 }));
    this.UNRELATED.add(new ItemSet("Gold", new int[] { 314, 315, 316, 317 }));
    this.UNRELATED.add(new ItemSet("Diamond", new int[] { 310, 311, 312, 313 }));
  }

  private void F()
  {
    this.addGap = new ButtonGroup();
    this.charAt = new JButton();
    this.getSelectedIndex = new JRadioButton();
    this.addGroup = new ButtonGroup();
    this.hasNext = new JSlider();
    this.e = new JLabel();
    this.equals = new JLabel();
    this.createSequentialGroup = new JLabel();
    this.as = new JButton();
    this.find = new JLabel();
    this.I = new JLabel();
    this.isSelected = new JTabbedPane();
    this.parseInt = new JPanel();
    this.addTab = new JCheckBox();
    this.au = new JCheckBox();
    this.printStackTrace = new JCheckBox();
    this.append = new JCheckBox();
    this.addKeyListener = new JRadioButton();
    this.iterator = new JRadioButton();
    this.matcher = new JRadioButton();
    this.at = new JCheckBox();
    this.next = new JRadioButton();
    this.setEnabled = new JRadioButton();
    this.addPreferredGap = new JRadioButton();
    this.setVerticalGroup = new JRadioButton();
    this.length = new JRadioButton();
    this.compile = new JLabel();
    this.get = new JLabel();
    this.setLayout = new JPanel();
    this.av = new JCheckBox();
    SpinnerNumberModel localSpinnerNumberModel = new SpinnerNumberModel(1, 1, 64, 1);
    this.aw = new JSpinner(localSpinnerNumberModel);
    this.setVerifyInputWhenFocusTarget = new JCheckBox();
    this.setText = new JComboBox();
    this.createParallelGroup = new JLabel();
    this.setHorizontalGroup = new JButton();
    this.exit = new JLabel();
    this.addElement = new JComboBox();
    this.setFont = new JButton();
    this.addMouseListener = new JButton();
    this.c = new JTextField();
    this.getValue = new JScrollPane();
    this.ax = new JList();
    this.clear = new JLabel();
    this.getAccessibleContext = new JPanel();
    this.g = new JLabel();
    this.setSelectionMode = new JTextField();
    this.setAccessibleName = new JButton();
    this.setModel = new JButton();
    this.getText = new JScrollPane();
    this.setSelected = new JList();
    this.charAt.setText("jButton1");
    this.getSelectedIndex.setText("jRadioButton1");
    setTitle("MCCheat");
    setAlwaysOnTop(true);
    setResizable(false);
    this.e.setText("For updates and more information");
    this.equals.setText("www.mccheat.net");
    this.createSequentialGroup.setFont(new Font("Tahoma", 1, 11));
    this.createSequentialGroup.setText("MCCheat Version 1.9");
    this.as.setText("Hide");
    this.as.addActionListener(new GUI.1(this));
    this.find.setText("People Using MCCheat:");
    this.I.setText("0");
    this.addTab.setText("Fire Proof");
    this.addTab.addActionListener(new GUI.2(this));
    this.au.setText("Invincibility");
    this.au.addActionListener(new GUI.3(this));
    this.printStackTrace.setText("Oxygen");
    this.printStackTrace.addActionListener(new GUI.4(this));
    this.append.setText("Fly Mode");
    this.append.addActionListener(new GUI.5(this));
    this.addGap.add(this.addKeyListener);
    this.addKeyListener.setText("Day");
    this.addKeyListener.addActionListener(new GUI.6(this));
    this.addGap.add(this.iterator);
    this.iterator.setText("Night");
    this.iterator.addActionListener(new GUI.7(this));
    this.addGap.add(this.matcher);
    this.matcher.setSelected(true);
    this.matcher.setText("Normal");
    this.matcher.addActionListener(new GUI.8(this));
    this.at.setText("Hover Mode");
    this.at.addActionListener(new GUI.9(this));
    this.addGroup.add(this.next);
    this.next.setText("North");
    this.next.addActionListener(new GUI.10(this));
    this.addGroup.add(this.setEnabled);
    this.setEnabled.setText("South");
    this.setEnabled.addActionListener(new GUI.11(this));
    this.addGroup.add(this.addPreferredGap);
    this.addPreferredGap.setText("East");
    this.addPreferredGap.addActionListener(new GUI.12(this));
    this.addGroup.add(this.setVerticalGroup);
    this.setVerticalGroup.setText("West");
    this.setVerticalGroup.addActionListener(new GUI.13(this));
    this.addGroup.add(this.length);
    this.length.setSelected(true);
    this.length.setText("None");
    this.length.addActionListener(new GUI.14(this));
    this.get.setText("Movement Direction");
    GroupLayout localGroupLayout1 = new GroupLayout(this.parseInt);
    this.parseInt.setLayout(localGroupLayout1);
    localGroupLayout1.setHorizontalGroup(localGroupLayout1.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(localGroupLayout1.createSequentialGroup().addContainerGap().addGroup(localGroupLayout1.createParallelGroup(GroupLayout.Alignment.TRAILING, false).addComponent(this.get, GroupLayout.Alignment.LEADING, -1, -1, 32767).addGroup(GroupLayout.Alignment.LEADING, localGroupLayout1.createSequentialGroup().addGroup(localGroupLayout1.createParallelGroup(GroupLayout.Alignment.LEADING).addComponent(this.length).addComponent(this.setVerticalGroup).addComponent(this.setEnabled).addComponent(this.addPreferredGap).addComponent(this.next)).addGap(35, 35, 35).addComponent(this.compile)).addGroup(GroupLayout.Alignment.LEADING, localGroupLayout1.createSequentialGroup().addGroup(localGroupLayout1.createParallelGroup(GroupLayout.Alignment.TRAILING, false).addComponent(this.append, GroupLayout.Alignment.LEADING).addComponent(this.addTab, GroupLayout.Alignment.LEADING).addComponent(this.printStackTrace, GroupLayout.Alignment.LEADING).addComponent(this.au, GroupLayout.Alignment.LEADING).addComponent(this.at, GroupLayout.Alignment.LEADING, -1, -1, 32767)).addGap(18, 18, 18).addGroup(localGroupLayout1.createParallelGroup(GroupLayout.Alignment.LEADING, false).addComponent(this.iterator, -1, -1, 32767).addComponent(this.matcher, -1, -1, 32767).addComponent(this.addKeyListener)))).addContainerGap(18, 32767)));
    localGroupLayout1.setVerticalGroup(localGroupLayout1.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(localGroupLayout1.createSequentialGroup().addContainerGap().addGroup(localGroupLayout1.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(localGroupLayout1.createSequentialGroup().addComponent(this.au).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(this.printStackTrace).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(this.addTab).addComponent(this.append).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(this.at)).addGroup(localGroupLayout1.createSequentialGroup().addComponent(this.matcher).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(this.addKeyListener).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(this.iterator))).addGap(18, 18, 18).addComponent(this.get).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addGroup(localGroupLayout1.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(localGroupLayout1.createSequentialGroup().addGap(95, 95, 95).addComponent(this.compile)).addGroup(localGroupLayout1.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(localGroupLayout1.createSequentialGroup().addGap(23, 23, 23).addComponent(this.next).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(this.addPreferredGap).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(this.setEnabled).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(this.setVerticalGroup)).addGroup(GroupLayout.Alignment.TRAILING, localGroupLayout1.createSequentialGroup().addComponent(this.length).addGap(92, 92, 92)))).addGap(167, 167, 167)));
    this.isSelected.addTab("Options", this.parseInt);
    this.av.setText("Spawn Invincible Items");
    this.aw.setEnabled(true);
    this.aw.setVerifyInputWhenFocusTarget(false);
    this.setVerifyInputWhenFocusTarget.setText("Spawn Unlimited Stacks");
    this.setVerifyInputWhenFocusTarget.addActionListener(new GUI.15(this));
    this.setText.setModel(new DefaultComboBoxModel(new String[] { "Wood", "Gold", "Stone", "Iron", "Diamond" }));
    this.createParallelGroup.setText("Tools");
    this.setHorizontalGroup.setText("Spawn");
    this.setHorizontalGroup.addActionListener(new GUI.16(this));
    this.exit.setText("Armor Set");
    this.addElement.setModel(new DefaultComboBoxModel(new String[] { "Leather", "Chainmail", "Iron", "Gold", "Diamond" }));
    this.setFont.setText("Spawn");
    this.setFont.addActionListener(new GUI.17(this));
    this.addMouseListener.setText("Delete All Items");
    this.addMouseListener.addActionListener(new GUI.18(this));
    this.c.addKeyListener(new GUI.19(this));
    this.ax.setSelectionMode(0);
    this.ax.setModel(this.addComponent);
    this.ax.addMouseListener(new GUI.20(this));
    this.getValue.setViewportView(this.ax);
    this.clear.setText("Item:");
    GroupLayout localGroupLayout2 = new GroupLayout(this.setLayout);
    this.setLayout.setLayout(localGroupLayout2);
    localGroupLayout2.setHorizontalGroup(localGroupLayout2.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(localGroupLayout2.createSequentialGroup().addGroup(localGroupLayout2.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(localGroupLayout2.createSequentialGroup().addGap(8, 8, 8).addGroup(localGroupLayout2.createParallelGroup(GroupLayout.Alignment.LEADING).addComponent(this.setFont, -1, 170, 32767).addComponent(this.addMouseListener, -1, 170, 32767).addComponent(this.setHorizontalGroup, -1, 170, 32767).addGroup(localGroupLayout2.createSequentialGroup().addComponent(this.exit).addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED).addComponent(this.addElement, 0, 112, 32767)).addGroup(localGroupLayout2.createSequentialGroup().addComponent(this.createParallelGroup).addGap(18, 18, 18).addComponent(this.setText, 0, 127, 32767)))).addGroup(localGroupLayout2.createSequentialGroup().addContainerGap().addGroup(localGroupLayout2.createParallelGroup(GroupLayout.Alignment.LEADING).addComponent(this.getValue, -1, 168, 32767).addComponent(this.av).addGroup(localGroupLayout2.createSequentialGroup().addComponent(this.setVerifyInputWhenFocusTarget).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, -1, 32767).addComponent(this.aw, -2, -1, -2)).addGroup(localGroupLayout2.createSequentialGroup().addComponent(this.clear).addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED).addComponent(this.c, -1, 132, 32767))))).addContainerGap()));
    localGroupLayout2.setVerticalGroup(localGroupLayout2.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(localGroupLayout2.createSequentialGroup().addContainerGap().addComponent(this.av).addGap(2, 2, 2).addGroup(localGroupLayout2.createParallelGroup(GroupLayout.Alignment.BASELINE).addComponent(this.setVerifyInputWhenFocusTarget).addComponent(this.aw, -2, -1, -2)).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addGroup(localGroupLayout2.createParallelGroup(GroupLayout.Alignment.BASELINE).addComponent(this.c, -2, -1, -2).addComponent(this.clear)).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(this.getValue, -1, 78, 32767).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addGroup(localGroupLayout2.createParallelGroup(GroupLayout.Alignment.BASELINE).addComponent(this.setText, -2, -1, -2).addComponent(this.createParallelGroup)).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(this.setHorizontalGroup).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addGroup(localGroupLayout2.createParallelGroup(GroupLayout.Alignment.TRAILING).addComponent(this.exit).addComponent(this.addElement, -2, -1, -2)).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(this.setFont).addGap(4, 4, 4).addComponent(this.addMouseListener).addContainerGap()));
    this.isSelected.addTab("Spawning", this.setLayout);
    this.g.setText("Teleport Name:");
    this.setAccessibleName.setText("Save Teleport");
    this.setAccessibleName.addActionListener(new GUI.21(this));
    this.setModel.setText("Teleport");
    this.setModel.addActionListener(new GUI.22(this));
    this.setSelected.setSelectionMode(0);
    this.setSelected.setModel(this.addActionListener);
    this.getText.setViewportView(this.setSelected);
    GroupLayout localGroupLayout3 = new GroupLayout(this.getAccessibleContext);
    this.getAccessibleContext.setLayout(localGroupLayout3);
    localGroupLayout3.setHorizontalGroup(localGroupLayout3.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(GroupLayout.Alignment.TRAILING, localGroupLayout3.createSequentialGroup().addContainerGap().addGroup(localGroupLayout3.createParallelGroup(GroupLayout.Alignment.TRAILING).addComponent(this.getText, GroupLayout.Alignment.LEADING, -1, 168, 32767).addComponent(this.setAccessibleName, GroupLayout.Alignment.LEADING, -1, 168, 32767).addGroup(GroupLayout.Alignment.LEADING, localGroupLayout3.createSequentialGroup().addComponent(this.g).addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED).addComponent(this.setSelectionMode, -1, 84, 32767)).addComponent(this.setModel, GroupLayout.Alignment.LEADING, -1, 168, 32767)).addContainerGap()));
    localGroupLayout3.setVerticalGroup(localGroupLayout3.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(localGroupLayout3.createSequentialGroup().addContainerGap().addGroup(localGroupLayout3.createParallelGroup(GroupLayout.Alignment.BASELINE).addComponent(this.g).addComponent(this.setSelectionMode, -2, -1, -2)).addGap(18, 18, 18).addComponent(this.setAccessibleName).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(this.getText, -1, 193, 32767).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(this.setModel).addContainerGap()));
    this.isSelected.addTab("Teleporting", this.getAccessibleContext);
    GroupLayout localGroupLayout4 = new GroupLayout(getContentPane());
    getContentPane().setLayout(localGroupLayout4);
    localGroupLayout4.setHorizontalGroup(localGroupLayout4.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(localGroupLayout4.createSequentialGroup().addGroup(localGroupLayout4.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(localGroupLayout4.createSequentialGroup().addGap(62, 62, 62).addComponent(this.equals)).addGroup(localGroupLayout4.createSequentialGroup().addGap(25, 25, 25).addComponent(this.e)).addGroup(localGroupLayout4.createSequentialGroup().addContainerGap().addComponent(this.as, -1, 193, 32767)).addGroup(localGroupLayout4.createSequentialGroup().addGap(45, 45, 45).addComponent(this.find).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(this.I, -2, 26, -2))).addContainerGap()).addGroup(GroupLayout.Alignment.TRAILING, localGroupLayout4.createSequentialGroup().addContainerGap(49, 32767).addComponent(this.createSequentialGroup).addGap(49, 49, 49)).addGroup(localGroupLayout4.createSequentialGroup().addContainerGap().addComponent(this.isSelected, -1, 193, 32767).addContainerGap()));
    localGroupLayout4.setVerticalGroup(localGroupLayout4.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(localGroupLayout4.createSequentialGroup().addContainerGap().addComponent(this.createSequentialGroup, -2, 14, -2).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(this.as).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addGroup(localGroupLayout4.createParallelGroup(GroupLayout.Alignment.BASELINE).addComponent(this.I).addComponent(this.find)).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(this.isSelected, -2, 339, -2).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, -1, 32767).addComponent(this.e).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(this.equals).addContainerGap()));
    this.isSelected.getAccessibleContext().setAccessibleName("Options");
    pack();
  }

  private void KKLI(ActionEvent paramActionEvent)
  {
    Main.I.setVisible(false);
    Main.Z.setVisible(true);
  }

  private void LEADING(ActionEvent paramActionEvent)
  {
    this.KKLI.I(Direction.I);
  }

  private void RELATED(ActionEvent paramActionEvent)
  {
    this.KKLI.I(Direction.D);
  }

  private void TRAILING(ActionEvent paramActionEvent)
  {
    this.KKLI.I(Direction.C);
  }

  private void UNRELATED(ActionEvent paramActionEvent)
  {
    this.KKLI.I(Direction.B);
  }

  private void aB(ActionEvent paramActionEvent)
  {
    this.KKLI.I(Direction.Z);
  }

  private void add(ActionEvent paramActionEvent)
  {
    if (this.at.isSelected())
      this.KKLI.D(true);
    else
      this.KKLI.D(false);
  }

  private void addActionListener(ActionEvent paramActionEvent)
  {
    this.KKLI.I(Status.C);
  }

  private void addComponent(ActionEvent paramActionEvent)
  {
    this.KKLI.I(Status.Z);
  }

  private void addContainerGap(ActionEvent paramActionEvent)
  {
    this.KKLI.I(Status.I);
  }

  private void addElement(ActionEvent paramActionEvent)
  {
    if (this.append.isSelected())
      this.KKLI.B(true);
    else
      this.KKLI.B(false);
  }

  private void addGap(ActionEvent paramActionEvent)
  {
    if (this.printStackTrace.isSelected())
      this.KKLI.Z(true);
    else
      this.KKLI.Z(false);
  }

  private void addGroup(ActionEvent paramActionEvent)
  {
    if (this.au.isSelected())
      this.KKLI.I(true);
    else
      this.KKLI.I(false);
  }

  private void addKeyListener(ActionEvent paramActionEvent)
  {
    if (this.addTab.isSelected())
      this.KKLI.C(true);
    else
      this.KKLI.C(false);
  }

  private void addMouseListener(ActionEvent paramActionEvent)
  {
    if (this.setSelected.getSelectedIndex() >= 0)
    {
      Teleport localTeleport = (Teleport)this.aB.get(this.setSelected.getSelectedIndex());
      this.BASELINE.g.c(localTeleport.I(), localTeleport.Z(), localTeleport.C(), this.BASELINE.g.aB, 0.0F);
      this.BASELINE.g.as = (this.BASELINE.g.at = this.BASELINE.g.au = 0.0D);
    }
  }

  private void addPreferredGap(ActionEvent paramActionEvent)
  {
    String str = this.setSelectionMode.getText().trim();
    if ((str == null) || (str.equals("")))
    {
      JOptionPane.showMessageDialog(null, "Please enter a name for the teleport.");
      return;
    }
    str = aw(str);
    this.aB.add(new Teleport(str, this.BASELINE.g.av, this.BASELINE.g.aw, this.BASELINE.g.ax));
    this.addActionListener.addElement(str);
  }

  private void addTab(MouseEvent paramMouseEvent)
  {
    if (!BASELINE())
    {
      JOptionPane.showMessageDialog(null, "Please login to an SMP server or load Single Player first.");
      return;
    }
    int i = this.ax.getSelectedIndex();
    if (i < 0)
      return;
    int j = 0;
    Item localItem = (Item)this.RELATED.get(i);
    if (localItem.C() == Type.Z)
      j = -32767;
    int k = Integer.parseInt(this.aw.getValue().toString());
    if (i > -1)
      try
      {
        this.F.I(localItem.Z(), this.av.isSelected() ? j : 0, this.setVerifyInputWhenFocusTarget.isSelected() ? -1 : k);
      }
      catch (Exception localException)
      {
        JOptionPane.showMessageDialog(null, "Please login to an SMP server or load Single Player first.");
      }
    else
      JOptionPane.showMessageDialog(null, "Please select an Item Set to spawn.");
  }

  private void append(KeyEvent paramKeyEvent)
  {
    String str = this.c.getText();
    this.addComponent.clear();
    this.RELATED.clear();
    if ((str != null) && (!str.equals("")))
    {
      Pattern localPattern = Pattern.compile(str, 2);
      Iterator localIterator = this.LEADING.iterator();
      while (localIterator.hasNext())
      {
        Item localItem = (Item)localIterator.next();
        Matcher localMatcher = localPattern.matcher(localItem.I());
        if (localMatcher.find())
        {
          this.addComponent.addElement(localItem.I());
          this.RELATED.add(localItem);
        }
      }
    }
  }

  private void as(ActionEvent paramActionEvent)
  {
    if (!BASELINE())
    {
      JOptionPane.showMessageDialog(null, "Please login to an SMP server or load Single Player first.");
      return;
    }
    try
    {
      this.D.I();
    }
    catch (Exception localException)
    {
      JOptionPane.showMessageDialog(null, "Please login to an SMP server or load Single Player first.");
    }
  }

  private void at(ActionEvent paramActionEvent)
  {
    if (!BASELINE())
    {
      JOptionPane.showMessageDialog(null, "Please login to an SMP server or load Single Player first.");
      return;
    }
    int i = this.addElement.getSelectedIndex();
    ItemSet localItemSet = (ItemSet)this.UNRELATED.get(i);
    int[] arrayOfInt = localItemSet.I();
    if (i > -1)
      try
      {
        for (int j = 0; j < arrayOfInt.length; j++)
          this.F.I(arrayOfInt[j], this.av.isSelected() ? -32767 : 0, 1, j);
      }
      catch (Exception localException)
      {
        JOptionPane.showMessageDialog(null, "Please login to an SMP server or load Single Player first.");
        localException.printStackTrace();
      }
    else
      JOptionPane.showMessageDialog(null, "Please select an Item Set to spawn.");
  }

  private void au(ActionEvent paramActionEvent)
  {
    if (!BASELINE())
    {
      JOptionPane.showMessageDialog(null, "Please login to an SMP server or load Single Player first.");
      return;
    }
    int i = this.setText.getSelectedIndex();
    ItemSet localItemSet = (ItemSet)this.TRAILING.get(i);
    int[] arrayOfInt = localItemSet.I();
    if (i > -1)
      try
      {
        for (int j = 0; j < arrayOfInt.length; j++)
          this.F.I(arrayOfInt[j], this.av.isSelected() ? -32767 : 0, 1);
      }
      catch (Exception localException)
      {
        JOptionPane.showMessageDialog(null, "Please login to an SMP server or load Single Player first.");
      }
    else
      JOptionPane.showMessageDialog(null, "Please select an Item Set to spawn.");
  }

  private void av(ActionEvent paramActionEvent)
  {
    if (this.setVerifyInputWhenFocusTarget.isSelected())
      this.aw.setEnabled(false);
    else
      this.aw.setEnabled(true);
  }

  public static final String aw(String paramString)
  {
    return paramString.length() > 0 ? Character.toUpperCase(paramString.charAt(0)) + paramString.substring(1) : paramString;
  }
}

/* Location:           C:\Users\Administrator\Desktop\MCCheat_1.9\
 * Qualified Name:     GUI
 * JD-Core Version:    0.6.0
 */